package com.tsd.system.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysLoginInfo;
import com.tsd.system.entity.SysLoginInfoExt;
import com.tsd.system.vo.SysLoginInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysLoginInfoMapper
 *
 * @author Luoyc
 * @date 2020/05/15 15:39:42
 */
public interface SysLoginInfoMapper {

    SysLoginInfo selectByPrimaryKey(Long id);

    SysLoginInfoExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysLoginInfo record);

    int insertSelective(SysLoginInfo record);

    int updateByPrimaryKey(SysLoginInfo record);

    int updateByPrimaryKeySelective(SysLoginInfo record);

    List<SysLoginInfoExt> selectByEntity(SysLoginInfo record);

    List<SysLoginInfoExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysLoginInfoExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysLoginInfoExt> selectByParams(@Param("params") Map<String, Object> params);

    SysLoginInfoExt selectLastInfoByUserSid(String user_sid);

    List<SysLoginInfoVo> selectCurrentDayNotLogin(@Param("params") Map<String, Object> params);

    List<SysLoginInfoVo> selectTenDaysNotLogin(@Param("params") Map<String, Object> params);

    List<SysLoginInfoVo> selectFreezeThirtyDaysNotLogin(@Param("params") Map<String, Object> params);
}
